<script>
function refreshPrice(data) {
    var p = document.getElementById('test-jsonp');
    console.log(p);
    p.innerHTML = '当前价格：' +
        data['0000001'].name +': ' + 
        data['0000001'].price + '；' +
        data['1399001'].name + ': ' +
        data['1399001'].price;
}
function getPrice() {
    var
        js = document.createElement('script'),
        head = document.getElementsByTagName('head')[0];
    js.src = 'file:///E:/PROJECTS/js_practice/AJAX/other_sites.json';
    // url with ?callback, proxy returns callback(JSON)
    head.appendChild(js);
}
</script>

<button onclick="getPrice()"> refresh </button>
<p id="test-jsonp"></p>
<!--

-->
